Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

E3 agg commitment #647

Merged
merged 27 commits into from
Sep 26, 2022
Merged

E3 agg commitment #647

merged 27 commits into from
Sep 26, 2022

Conversation

awskii
Copy link
Collaborator

@awskii awskii commented Sep 21, 2022

No description provided.

state/history.go Outdated
files *btree.BTreeG[*filesItem]
compressVals bool
files *btree.BTreeG[*filesItem]
valueMergeFn func(prev, last []byte) ([]byte, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this valueMergeFn should belong to Domain instead? I did not see how it is used in History

p := (*[maxDataSize / 8]uint64)(unsafe.Pointer(&r[16]))
ef.data = p[:]

ef.data = make([]uint64, len(r[16:])/8)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be undone, because the idea is to use memory-mapped files and not allocate it on the heap

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we discussed that already, using unsafe pointer p leads to use-after-close in indexes

@awskii
Copy link
Collaborator Author

awskii commented Sep 23, 2022

Fuzz test requires to be revisited, working on it, everything else looks working.

@AlexeyAkhunov AlexeyAkhunov merged commit 4f52325 into main Sep 26, 2022
@AlexeyAkhunov AlexeyAkhunov deleted the e3-agg-commitment branch September 26, 2022 14:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants